<!-- Right side column. Contains the navbar and content of the page -->
<aside class="right-side">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            <?php echo $this->lang->line('menu_sub_kasus'); ?>
            <small><?php echo $this->lang->line('webname'); ?></small>
        </h1>
    </section>

    <!-- Main content -->
    <section class="content">
        <div class="row">
            <!-- left column -->
            <div class="col-xs-12">
                <!-- general form elements -->
                <div class="box box-danger">
                    <div class="box-header">
                        <h3 class="box-title">
                            <?php if ($sub_kasus_id) { ?>
                                <?php echo $this->lang->line('update'); ?>
                            <?php } else { ?>
                                <?php echo $this->lang->line('tambah'); ?>
                            <?php } ?>
                        </h3>
                    </div><!-- /.box-header -->
                    <!-- form start -->
                    <?php if ($sub_kasus_id) { ?>
                        <?php echo form_open('sub_kasuss/edit/id/' . $sub_kasus_id); ?>
                    <?php } else { ?>
                        <?php echo form_open('sub_kasuss/add'); ?>
                    <?php } ?>
                    <div class="box-body">
                        <?php if (!is_null($message)) echo $message; ?>
                        <?php echo validation_errors(); ?>

                        <div class="form-group">
                            <label><?php echo $this->lang->line('kat_kasus'); ?></label>
                            <select class="form-control" name="in_kat_kasus">
                                <?php foreach ($kat_kasuss AS $val => $pil) { ?>
                                    <option <?php if (set_value('in_kat_kasus', (isset($sub_kasuss->sub_kat_kasus_id)) ? $sub_kasuss->sub_kat_kasus_id : '') == $val) { ?>selected<?php } ?> value="<?php echo $val; ?>"><?php echo $pil; ?></option>
                                <?php } ?>
                            </select>
                        </div>

                        <div class="form-group">
                            <label><?php echo $this->lang->line('namas'); ?></label>
                            <input class="form-control" type="text" name="in_nama" value="<?php echo set_value('in_nama', (isset($sub_kasuss->sub_kasus_nama)) ? $sub_kasuss->sub_kasus_nama : ''); ?>" />
                        </div>

                        <div class="form-group">
                            <label><?php echo $this->lang->line('keterangan'); ?></label>
                            <textarea class="form-control" type="text" name="in_keterangan" rows="3" ><?php echo set_value('in_keterangan', (isset($sub_kasuss->sub_kasus_keterangan)) ? $sub_kasuss->sub_kasus_keterangan : ''); ?></textarea>
                        </div>
                    </div><!-- /.box-body -->

                    <div class="box-footer">
                        <?php if ($sub_kasus_id) { ?>
                            <input class="btn btn-primary" type="submit" name="btn_update" value="<?php echo $this->lang->line('update'); ?>" />
                        <?php } else { ?>
                            <input class="btn btn-primary" type="submit" name="btn_tambah" value="<?php echo $this->lang->line('tambah'); ?>" />
                        <?php } ?>
                        <?php echo anchor('sub_kasuss/', $this->lang->line('batal'), array('class' => 'btn btn-success')); ?>
                    </div>
                    </form>
                </div><!-- /.box -->
            </div><!--/.col (right) -->
        </div>   <!-- /.row -->
    </section><!-- /.content -->
</aside><!-- /.right-side -->

